package cn.jinjie.day05.test5;

public class Test {
    public static void main(String[] args) {
        Employee e = new Employee() {
            @Override
            public void work() {
                // 输出格式:工号为001的员工范冰冰在努力的敲代码
                System.out.println("工号为" + this.getId() + "的员工" + this.getName() + "在努力的敲代码");
            }
        };
        setEmployee(e);
        e.work();
    }

    public static void setEmployee(Employee em) {
        em.setId("001");
        em.setName("范冰冰");
    }

}
